package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * halo 支付标题
 * </p>
 *
 * @author Atlakyn
 * @since 2021-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_halo_title")
public class HaloTitle extends Model<HaloTitle> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题名
     */
    private String name;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 逻辑删除
     */
    private Boolean del;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
